package com.huanxing.cloud.product.api.feign;

import com.huanxing.cloud.common.core.constant.SecurityConstants;
import com.huanxing.cloud.common.core.constant.ServiceNameConstants;
import com.huanxing.cloud.common.core.util.Result;
import com.huanxing.cloud.product.api.entity.GoodsAppraise;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * @author lijx
 */
@FeignClient(contextId = "remoteGoodsAppraiseService", value = ServiceNameConstants.PRODUCT_SERVICE)
public interface RemoteGoodsAppraiseService {

	/**
	 * this is addGoodsAppraise method
	 * @param goodsAppraiseList
	 * @return
	 */
	@PostMapping("/app/goodsappraise")
	Result<Boolean> addGoodsAppraise(@RequestBody List<GoodsAppraise> goodsAppraiseList,
			@RequestHeader(SecurityConstants.SOURCE) String source);

}
